Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new error code to indicate the reset happended in the driver. #714

Merged
merged 1 commit into from
Jul 20, 2023

Conversation

pengxin99
Copy link
Contributor

Use VA_STATUS_ERROR_RESET to indeicate media reset/engine reset have happended in the driver, user can use vaQuerySurfaceError() to get the detail info to do some customized work.

@pengxin99 pengxin99 force-pushed the pengxin/add_error_code_reset branch from 347520e to e04fe6d Compare June 5, 2023 08:21
@pengxin99
Copy link
Contributor Author

Hi, @XinfengZhang @Jexu, could you pls help to review this PR?

va/va.h Outdated Show resolved Hide resolved
va/va.h Outdated Show resolved Hide resolved
va/va.h Outdated Show resolved Hide resolved
va/va.h Show resolved Hide resolved
va/va.h Outdated Show resolved Hide resolved
va/va.h Outdated Show resolved Hide resolved
@pengxin99 pengxin99 force-pushed the pengxin/add_error_code_reset branch 2 times, most recently from d7d0421 to f18f2d5 Compare June 13, 2023 09:04
* After the applications get VA_STATUS_HW_BUSY or VA_STATUS_SUCCESSFULL from vaSyncSurface(),
* it still can call vaQuerySurfaceError to find out further details to know if has real hw reset
* happened on this surface since umd and kmd could recover the context from reset with success in sometimes.
* VA_STATUS_HW_BUSY or VA_STATUS_SUCCESSFULL also could be passed in as "error_status".
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if there are one reset, and after re-run a while, there are another reset. how to know it?
each frame I need call it, first frame it is VADecodeReset, next frames it is invalid, then VADecodeReset again

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If user wants to know all the reset frames, then user needs to call vaQuerySurfaceError() for every frame and recode the reset information.
If user don't care about the reset, he can just call vaQuerySurfaceError() when get error from syncSurface().

Copy link
Contributor

@XinfengZhang XinfengZhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, even "success" is treated as "error code" , it looks a little tricky.

Use VADecodeReset to indeicate media reset/engine reset have happended in the driver,
user can use vaQuerySurfaceError() to get the detail info to do some customized work.

Signed-off-by: Pengxin, Yuan <[email protected]>
@XinfengZhang XinfengZhang merged commit 6087d4b into intel:master Jul 20, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants